home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / appletalk / uab.shar / node.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-12  |  1.3 KB  |  53 lines

  1. /*
  2.  * $Author: cck $ $Date: 88/09/14 10:20:08 $
  3.  * $Header: /src/local/mac/cap/etalk/RCS/node.h,v 1.2 88/09/14 10:20:08 cck Rel $
  4.  * $Revision: 1.2 $
  5. */
  6.  
  7. /*
  8.  * node.h - defines a "node" (as per RTMP id)
  9.  *
  10.  * will eventually be the header file for a node manager
  11.  *
  12.  *
  13.  * Copyright (c) 1988 by The Trustees of Columbia University 
  14.  *  in the City of New York.
  15.  *
  16.  * Permission is granted to any individual or institution to use,
  17.  * copy, or redistribute this software so long as it is not sold for
  18.  * profit, provided that this notice and the original copyright
  19.  * notices are retained.  Columbia University nor the author make no
  20.  * representations about the suitability of this software for any
  21.  * purpose.  It is provided "as is" without express or implied
  22.  * warranty.
  23.  *
  24.  *
  25.  * Edit History:
  26.  *
  27.  *  Sept 4, 1988  CCKim Created
  28.  *
  29. */
  30.  
  31. #ifndef _NODE_INCLUDED
  32. #define _NODE_INCLUDED "yes"
  33. /*
  34.  * NODE, struct node_addr
  35.  * 
  36.  * describes a node address which can be up to 256 bits in length
  37.  * (theoretically).  This would be the "lap" level node id which need
  38.  * not bear any relationship to the ddp node.
  39.  *
  40. */
  41.  
  42. #define MAXNODEBYTE 8
  43. #define MAXNODEBIT 256
  44.  
  45. typedef struct node_addr {
  46.   int n_bytes;            /* number of bytes */
  47.   int n_size;            /* size of node */
  48.   byte n_id[MAXNODEBYTE];    /* node number on that port */
  49. } NODE;
  50.  
  51. #endif /* FILE INCLUDED */
  52.  
  53.